{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## What is a Variable?\n",
    "\n",
    "A variable is any characteristic, number, or quantity that can be measured or counted. The following are examples of variables:\n",
    "\n",
    "- Age (21, 35, 62, ...)\n",
    "- Gender (male, female)\n",
    "- Income (GBP 20000, GBP 35000, GBP 45000, ...)\n",
    "- House price (GBP 350000, GBP 570000, ...)\n",
    "- Country of birth (China, Russia, Costa Rica, ...)\n",
    "- Eye colour (brown, green, blue, ...)\n",
    "- Vehicle make (Ford, Volkswagen, ...)\n",
    "\n",
    "They are called 'variables' because the value they take may vary (and it usually does) in a population. \n",
    "\n",
    "Most variables in a data set can be classified into one of two major types:\n",
    "\n",
    "- **Numerical variables** \n",
    "- **Categorical variables**\n",
    "\n",
    "\n",
    "===================================================================================\n",
    "\n",
    "## Numerical variables\n",
    "\n",
    "The values of a numerical variable are numbers. They can be further classified into discrete and continuous variables.\n",
    "\n",
    "### Discrete numerical variable\n",
    "\n",
    "A variable which values are whole numbers (counts) is called discrete. For example, the number of items bought by a customer in a supermarket is discrete. The customer can buy 1, 25, or 50 items, but not 3.7 items. It is always a round number. The following are examples of discrete variables:\n",
    "\n",
    "- Number of active bank accounts of a borrower (1, 4, 7, ...)\n",
    "- Number of pets in the family\n",
    "- Number of children in the family\n",
    "\n",
    "\n",
    "### Continuous numerical variable\n",
    "\n",
    "A variable that may contain any value within some range is called continuous. For example, the total amount paid by a customer in a supermarket is continuous. The customer can pay, GBP 20.5, GBP 13.10, GBP 83.20 and so on.\n",
    "Other examples of continuous variables are:\n",
    "\n",
    "- House price (in principle, it can take any value) (GBP 350000, 57000, 1000000, ...)\n",
    "- Time spent surfing a website (3.4 seconds, 5.10 seconds, ...)\n",
    "- Total debt as percentage of total income in the last month (0.2, 0.001, 0, 0.75, ...)\n",
    "\n",
    "=============================================================================\n",
    "\n",
    "## Real Life example: Peer to peer lending (Finance)\n",
    "\n",
    "### Lending Club\n",
    "\n",
    "**Lending Club** is a peer-to-peer Lending company based in the US. They match people looking to invest money with people looking to borrow money. When investors invest their money through Lending Club, this money is passed onto borrowers, and when borrowers pay their loans back, the capital plus the interest passes on back to the investors. It is a win for everybody as they can get typically lower loan rates and higher investor returns.\n",
    "\n",
    "If you want to learn more about Lending Club follow this [link](https://www.lendingclub.com/).\n",
    "\n",
    "The Lending Club dataset contains complete loan data for all loans issued through 2007-2015, including the current loan status (Current, Late, Fully Paid, etc.) and latest payment information. Features include credit scores, number of finance inquiries, address including zip codes and state, and collections among others. Collections indicates whether the customer has missed one or more payments and the team is trying to recover their money.\n",
    "\n",
    "The file is a matrix of about 890 thousand observations and 75 variables. More detail on this dataset can be found in [Kaggle's website](https://www.kaggle.com/wendykan/lending-club-loan-data)\n",
    "\n",
    "Let's go ahead and have a look at the variables!"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "====================================================================================================\n",
    "\n",
    "To download the Lending Club loan book from Kaggle go to [this website](https://www.kaggle.com/wendykan/lending-club-loan-data)\n",
    "\n",
    "Scroll down to the bottom of the page, and click on the link 'loan.csv', and then click the 'download' blue button towards the right of the screen, to download the dataset.\n",
    "Unzip it, and save it to a directory of your choice.\n",
    "\n",
    "**Note that you need to be logged in to Kaggle in order to download the datasets**.\n",
    "\n",
    "If you save it in the same directory from which you are running this notebook, then you can load it the same way I will load it below.\n",
    "\n",
    "===================================================================================================="
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import numpy as np\n",
    "\n",
    "import matplotlib.pyplot as plt\n",
    "%matplotlib inline"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>loan_amnt</th>\n",
       "      <th>int_rate</th>\n",
       "      <th>annual_inc</th>\n",
       "      <th>loan_status</th>\n",
       "      <th>open_acc</th>\n",
       "      <th>open_il_12m</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>131079</th>\n",
       "      <td>23675.0</td>\n",
       "      <td>15.80</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>Current</td>\n",
       "      <td>4.0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>384935</th>\n",
       "      <td>7500.0</td>\n",
       "      <td>11.67</td>\n",
       "      <td>102000.0</td>\n",
       "      <td>Current</td>\n",
       "      <td>11.0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>73585</th>\n",
       "      <td>11150.0</td>\n",
       "      <td>9.25</td>\n",
       "      <td>72000.0</td>\n",
       "      <td>Fully Paid</td>\n",
       "      <td>6.0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>660814</th>\n",
       "      <td>8000.0</td>\n",
       "      <td>6.24</td>\n",
       "      <td>101400.0</td>\n",
       "      <td>Current</td>\n",
       "      <td>20.0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>349757</th>\n",
       "      <td>34000.0</td>\n",
       "      <td>19.52</td>\n",
       "      <td>99000.0</td>\n",
       "      <td>Current</td>\n",
       "      <td>12.0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        loan_amnt  int_rate  annual_inc loan_status  open_acc  open_il_12m\n",
       "131079    23675.0     15.80     90000.0     Current       4.0          NaN\n",
       "384935     7500.0     11.67    102000.0     Current      11.0          NaN\n",
       "73585     11150.0      9.25     72000.0  Fully Paid       6.0          NaN\n",
       "660814     8000.0      6.24    101400.0     Current      20.0          NaN\n",
       "349757    34000.0     19.52     99000.0     Current      12.0          NaN"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# let's load the dataset with just a few columns and a few rows\n",
    "# to speed things up\n",
    "\n",
    "use_cols = [\n",
    "    'loan_amnt', 'int_rate', 'annual_inc', 'open_acc', 'loan_status',\n",
    "    'open_il_12m'\n",
    "]\n",
    "\n",
    "data = pd.read_csv(\n",
    "    'loan.csv', usecols=use_cols).sample(\n",
    "        10000, random_state=44)  # set a seed for reproducibility\n",
    "\n",
    "data.head()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Continuous Variables"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([23675.,  7500., 11150.,  8000., 34000.,  8725., 30000., 10000.,\n",
       "       10200., 18000., 24000., 12000., 19200., 35000.,  4800., 16800.,\n",
       "       14725., 16000., 31500., 22500., 18800., 14100., 20000.,  5000.,\n",
       "       10625., 13350., 15000.,  2900., 28000., 15950.,  1500.,  1000.,\n",
       "       25000., 19500., 13000., 21000., 17650.,  9600., 14525.,  5600.,\n",
       "        6400.,  6000., 14000., 11000., 22400., 16825.,  8200., 21600.,\n",
       "       20675.,  2000.,  3950.,  4000.,  9500.,  8975., 13625.,  7000.,\n",
       "        5500.,  9450., 10800.,  7200., 27700.,  4650.,  3600.,  6450.,\n",
       "       15625.,  4825., 11200.,  4200., 28500.,  3375.,  5800.,  4425.,\n",
       "       25875., 24800., 14400., 22000., 19750., 26500.,  3625., 17000.,\n",
       "       21125.,  7525.,  3000.,  9250., 14675., 11700.,  7025., 19775.,\n",
       "       17800., 10300., 13200., 32000., 15400., 10575.,  9000., 10075.,\n",
       "       14600., 11550., 12500., 20975., 26000., 22250., 17100., 13375.,\n",
       "       12125., 23900., 28800., 12800., 10750.,  3500.,  4850., 18550.,\n",
       "       12250., 10500.,  4225.,  3925.,  6950., 33000., 23250.,  7225.,\n",
       "        1600., 14175., 23000., 11400.,  8500.,  2800., 20375., 10475.,\n",
       "       19275.,  8900., 11250., 17600., 21150.,  6700.,  9150., 11325.,\n",
       "       27800.,  5950., 29700., 24500., 12100.,  8425., 19600.,  3700.,\n",
       "        2500., 11975.,  8225.,  1975.,  7750., 19100., 29000.,  4750.,\n",
       "        5400., 23200., 30625., 16550., 15425., 20125., 28650., 30225.,\n",
       "        9800.,  5550., 11500., 21200., 19175., 12375., 23325., 18300.,\n",
       "        2950., 16450.,  6675., 17625.,  9125.,  9550., 15475., 21100.,\n",
       "       15850., 16700.,  3850.,  7100., 11625., 20500., 13300.,  9750.,\n",
       "       22800., 27000., 26400., 10250., 29975., 29275.,  7050., 18225.,\n",
       "       10975., 21825., 22950.,  3775., 15600., 18875., 12575., 12475.,\n",
       "        5750., 32200., 14375.,  3975., 22050., 24925., 14900., 26575.,\n",
       "       15500.,  5300.,  3300.,  1200.,  8750., 13675.,  3425., 27175.,\n",
       "        7600.,  6500., 29850., 13150., 17875., 10450.,  7925.,  8800.,\n",
       "       10775., 11900., 17575., 19900., 13775.,  4175.,  6725., 17975.,\n",
       "       19000.,  3200.,  5175., 28100.,  7800.,  6800., 16425., 19150.,\n",
       "       16500., 23450., 17850., 17925.,  4925.,  7250., 16875., 22825.,\n",
       "        4550., 12600., 11850., 14750., 13450.,  1800., 22375.,  4300.,\n",
       "       10100., 11175., 24375., 23875.,  4450., 15825., 29325.,  4125.,\n",
       "       25600., 18200., 12525., 12450.,  5375., 13600.,  4250., 12400.,\n",
       "        1400., 23300.,  6300.,  7400., 22200.,  5025., 22225., 17500.,\n",
       "       16200., 32400.,  4900.,  5200.,  7900., 30750.,  3250., 14025.,\n",
       "        3400., 11950., 24900., 13525., 14500., 13700., 27575., 24325.,\n",
       "       11575., 11750.,  7300., 12700., 25750.,  4950., 28900., 33950.,\n",
       "       11425., 20400.,  8400., 25975., 32500.,  3650.,  3350.,  7575.,\n",
       "        7075., 28250.,  5075., 24700., 20050.,  4725.,  2750., 14325.,\n",
       "        8600., 14425., 17275., 13500., 21850., 23975.,  7175., 12425.,\n",
       "       10050.,  4500.,  4700., 11050.,  2400.,  8125., 18250., 11300.,\n",
       "       17425.,  2100., 16575.,  8275., 24625., 24450., 24525., 30925.,\n",
       "       10950., 32625.,  5450., 25725., 10675., 13425., 19675.,  3875.,\n",
       "       10400., 20250.,  6050., 12175., 18900., 23950., 16150., 27675.,\n",
       "       25075.,  6075., 19050., 11525., 11075., 12075.,  8100.,  8250.,\n",
       "       22750.,  3325.,  6475., 20325., 21350., 15275., 10225.,  2375.,\n",
       "       21700., 19125., 27875., 20700.,  9975., 33600., 16900., 10150.,\n",
       "        8875., 13750., 11800., 14075.,  7125., 16750.,  6250., 18500.,\n",
       "       10825., 26900.,  6150.,  8150., 12875.,  1950., 34550.,  5050.,\n",
       "        4475.,  8700., 11450., 25200., 27500.,  8325., 22550., 16975.,\n",
       "       23475.,  7350., 31050.,  9700., 23350., 21275., 13050., 10325.,\n",
       "        8850.,  9200.,  9925., 16100., 13650.,  2875., 11600., 27550.,\n",
       "       18025., 19575.,  9375., 14450., 27250., 32100., 23750., 17950.,\n",
       "       19075., 19800.,  8950., 10600., 18400., 23400.,  8450.,  8025.,\n",
       "       12925.,  2325., 31975.,  4675., 14975., 18825., 31300., 27200.,\n",
       "        6225., 20200., 15775., 21400., 19700.,  2475.,  9900., 12675.,\n",
       "       15250., 23500., 16950., 11375., 28200.,  4375., 24350., 18350.,\n",
       "       13800.,  5100.,  8300., 10375., 10275., 15300., 23650., 20425.,\n",
       "        8175.,  6425., 14125.,  6825.,  3550., 31450., 15225., 13475.,\n",
       "       17325., 20550., 12725., 30600., 15875.,  2700.,  9025., 12975.,\n",
       "       30500.,  5925.,  7375.,  3900.,  9400.,  3825.,  9175.,  6875.,\n",
       "       31000.,  3100.,  2525.,  2200., 15700., 11025., 25225., 23275.,\n",
       "       32950.,  5250.,  2250., 27050., 14825., 26600.,  7825., 18575.,\n",
       "       23850.,  5225.,  6350., 19725., 32650., 32675., 14575., 23575.,\n",
       "        2150.,  3225., 16850., 11100.,  9675., 20875., 29175., 13900.,\n",
       "       29900.,  7775., 21250., 29100., 24975.,  4075., 19300., 13225.,\n",
       "       10550., 12750., 11875., 20800., 31825., 12275.,  1675., 21475.,\n",
       "        9875., 10700., 26850.,  8775., 18600.,  9950., 24600., 10850.,\n",
       "       15975.,  5700., 20150., 22850., 23825.,  9325.,  2850., 29775.,\n",
       "        9100., 32225., 33575., 10900., 22100.,  3050., 12625., 15750.,\n",
       "       11225., 13925., 13975., 14150.,  9650., 24250., 16225., 31200.,\n",
       "        3025., 15125.,  4400., 17400., 19350., 18700., 12150., 18075.,\n",
       "        9050., 23625.,  7150., 11125.,  6200., 24200., 32125., 30150.,\n",
       "       19025.,  9825.,  1900., 12950., 14800.,  2275., 22575., 28975.,\n",
       "       16300., 25275.,  9850., 22475., 16375., 22125., 30100., 24650.,\n",
       "       15100., 27600., 33875., 12775., 27325., 24475.,  1450., 18625.,\n",
       "       17825., 25450., 16250., 26375., 20950.,  2975., 15900., 15725.,\n",
       "       16475., 34475., 24175.,  6625.,  9225., 11350., 16400.,  5725.,\n",
       "       24400., 16125., 22600.,  3275., 10025., 23600., 22150., 30350.,\n",
       "       32350.,  8650., 10525., 28675., 21900., 19475.,  1875.,  7475.,\n",
       "       15375., 34025.,  9625., 33675., 24725.,  5275., 34625., 15800.,\n",
       "        2600., 21300.,  4600., 29400., 23800., 11475.,  5875.,  8550.,\n",
       "       23075., 20175., 22650., 11275.,  4100., 18050.,  5625., 20775.,\n",
       "       17050., 17700., 23525., 10725.,  3575., 12300., 25475., 17475.,\n",
       "        3800., 19950., 18150., 29050., 18750., 30800., 20225., 33500.,\n",
       "       13325., 17225., 25150., 28375., 16725., 34800., 15200., 15450.,\n",
       "       19375., 17750., 17075.,  7625.,  7725.,  3125., 10875.,  5150.,\n",
       "       12900.,  3450., 26925., 15350.,  4875., 10350.,  7325., 21750.,\n",
       "       33100.,  7950., 18450., 26975.,  9350.,  5425.,  9300.,  1925.,\n",
       "       13250.,  6850.,  9525., 33175., 11675.,  7700., 20100., 25700.,\n",
       "       10425.,  8525., 13125., 22075., 25350., 12225., 18175., 30375.,\n",
       "        4275.,  5975., 16675., 13850., 14050., 25325.,  5125.,  9275.,\n",
       "       11725., 20925., 13075., 13575., 27350., 28625.,  1100.,  6275.,\n",
       "       16600., 10175., 32875.,  6750.,  9775., 20650.,  5825., 28850.,\n",
       "       16625.,  6575., 17775.,  5350., 23125.,  2725.,  4625.,  8050.,\n",
       "       12050.,  7875., 18975.,  3075., 17125., 14275., 33425., 17350.,\n",
       "       24550., 27450., 19550., 21575., 14300., 27725., 26650.,  2775.,\n",
       "        6125., 27525., 34500., 19825.,  8625., 29500., 18725., 12825.,\n",
       "       10650.,  5475.,  5525., 22700., 22425., 21775., 20300., 20750.,\n",
       "       24575., 19425.,  9075., 25300., 12350., 28050., 27625.,  8475.,\n",
       "       30075., 14475.,  6600., 15075.,  7550., 13400.,  5325., 26125.,\n",
       "       27850., 17550., 14700., 22525., 13950., 15925., 12325., 24100.,\n",
       "       21450.,  7275.,  7850., 27100.,  6925., 19400.,  8350., 21725.,\n",
       "       21650., 14950.,  5900.,  4575.,  6025., 31700., 28775., 26800.,\n",
       "        4325., 13825., 11825.,  3725.,  9725., 13725., 21050., 32450.,\n",
       "       25500., 19875., 24825., 29450.,  7975., 16525.,  4025., 11775.,\n",
       "       19650., 27425., 24750., 13100.,  6100., 15550., 20450., 22675.,\n",
       "       27300., 19850.,  1550., 26275.,  6975., 20475., 29575., 32750.,\n",
       "       24950., 18525., 26750., 32850., 23100., 20350.,  7650., 14225.,\n",
       "       12850., 26475., 28425., 12200., 15650., 32050., 33750., 13875.,\n",
       "       18650., 13025.])"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# let's look at the values of the variable loan_amnt\n",
    "# this is the amount of money requested by the borrower\n",
    "# in US dollars\n",
    "\n",
    "data.loan_amnt.unique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Text(0, 0.5, 'Number of Loans')"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEWCAYAAAB8LwAVAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDMuMC4wLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvqOYd8AAAH/VJREFUeJzt3Xu4HFWZ7/HvT66BQEJAtiEgAUERiCJsAQcPJuKFm4QDiDiRk2BGnBlUjoaRgCOXcTwGFRGPjkwUJSBDgOggElAwEBQVJOEWrhIgSEgIAgESjGjknT9qbensVPeu3rurL3v/Ps/TT1dXrV71Vu3a/fZaq7pKEYGZmVlvr2l1AGZm1p6cIMzMLJcThJmZ5XKCMDOzXE4QZmaWywnCzMxyOUGYWdNJWiLpPa2Ow2pzgrC6tcs/tzKPSrq/1bFUI+ksST/oo8wSSWskrZb0lKSLJA1vVoz1kjRe0tJWx2Hlc4KwTnYgsC2ws6S3tzqYAfpARAwH9gLeBpzW4njMnCCssSR9TNJiSc9JulrSdhXLzpf0hKQXJS2U9L8qlp0l6QpJF0taJek+Sd19rG4y8GPg2jRdGcd8Sf8u6dfpm/lPJG0t6dK0/tslja0o/3dp3gvp+e8qlq3TYqpsFUgaKykkTZb0e0nPSPpcWnYwcDrwoRTD3X3tv4h4CvgZWaLoWd8mkr6a6l8h6QJJwyqW/4uk5ZKWSfpoimeXiv3wDxVlp0i6peL1bpJuSH+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qG7EdRl6Z7CAwrb2/aUOAEYUPJN8kulfwW4FLgG2n+LcD+EfE2sks4f7biPbuRXUp5X+DMdH2i3g4AHouIR8iupXNoxbJdgPPJfjG7G/D3ZL9SPgU4PZU5G7gzxXU62SUu+rIr8K2I2AN4Hjg6IuYAC4BJEbFXRKwpUI9ZVU4QNpS8A/ivNH0J2Qc1ZBcw+5mkRcC/kF2Lp8fcyO4L8AzZxfS6cur9MFliIT1XdjM9FhGLIru43X3AvMguX7CI7HpSpDguAYiIG4GtJY3oY1sei4i70vTCirrMGsYJwoaynuvM/H/gmxExDvg42TV6erxcMf1Xsgu2/Y2kDYCjgTMkLUl1HSJpi5z3v1Lx+pWKuqpdknkt6/6PFo7LrBGcIGwo+TXZVTsBJpF1LUF2mecn0/TkOut8D3B3ROwQEWMjYkeyS2TXc3e0X6R4kDQeeCayey8sIbu1KunewzsVqGsV2S1CzQbMCcIGq80kLa14fAb4FHCCpHuA44GTU9mzgCsl/ZLsPgX1+DDZvT4q/ZBsrKGos4DuFNcMXk1SPwRGpbuN/RPZVUT7chFwgQeprRF8NVczM8vlFoSZmeVygjAzs1xOEGZmlssJwszMcjlBmJlZLicIMzPL5QRhZma5/gc3LY2qnt/xJgAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "# let's make an histogram to get familiar with the\n",
    "# distribution of the variable\n",
    "\n",
    "fig = data.loan_amnt.hist(bins=50)\n",
    "fig.set_title('Loan Amount Requested')\n",
    "fig.set_xlabel('Loan Amount')\n",
    "fig.set_ylabel('Number of Loans')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "The values of the variable vary across the entire range of the variable. This is characteristic of continuous variables.\n",
    "\n",
    "The taller bars correspond to loan sizes of 10000, 15000, 20000, and 35000. There are more loans disbursed for those loan amount values. This indicates that most people tend to ask for these loan amounts. Likely, these particular loan amounts are pre-determined and offered as such in the Lending Club website.\n",
    "\n",
    "Less frequent loan values, like 23,000 or 33,000 could be requested by people who require a specific amount of money for a definite purpose."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([ 15.8 ,  11.67,   9.25,   6.24,  19.52,  15.88,  17.86,  16.55,\n",
       "        25.83,   8.9 ,  10.64,   7.9 ,  16.99,  20.99,  10.99,   9.67,\n",
       "        11.44,  11.53,  13.11,  13.33,  17.57,  19.99,  15.41,   6.17,\n",
       "        18.25,  16.2 ,   9.99,  24.89,  12.69,   9.32,  19.05,   7.89,\n",
       "        11.55,   9.76,   8.18,  20.49,   8.67,   9.17,  16.59,  15.61,\n",
       "        18.24,  14.91,   7.62,  13.99,  11.14,  16.29,  14.99,  13.98,\n",
       "        13.53,  12.49,  14.64,   6.62,   5.93,  25.57,  13.65,   5.32,\n",
       "         6.49,  15.22,  13.18,  11.49,   9.71,  14.33,  24.99,  15.59,\n",
       "        18.99,  14.65,  13.67,   6.68,  12.59,  11.48,   6.03,  19.19,\n",
       "        12.05,  13.57,  13.35,  12.85,  10.16,   8.49,  17.27,   7.26,\n",
       "         7.12,  13.48,   8.39,  12.39,  12.99,  14.49,  11.26,   8.19,\n",
       "        10.15,  17.56,  27.88,  19.97,   9.49,  13.66,  12.29,  21.48,\n",
       "        11.99,  11.22,  17.14,  10.74,  13.23,  15.31,  12.12,  18.29,\n",
       "        18.75,  18.54,  24.5 ,   6.92,  19.24,  10.49,   7.49,  17.76,\n",
       "         6.99,  22.99,  14.16,  13.68,  14.75,  13.49,  10.  ,  19.72,\n",
       "         7.69,  12.88,   6.  ,  18.84,  15.33,  23.4 ,  18.55,  14.09,\n",
       "         7.88,  16.78,  20.5 ,  19.03,  24.08,  14.98,  22.15,   6.89,\n",
       "        17.1 ,  14.27,  17.99,   9.8 ,  21.  ,  15.27,   6.39,  15.99,\n",
       "         5.99,   7.91,  21.99,  23.13,  13.05,  15.95,  19.22,  14.96,\n",
       "        14.3 ,  21.49,  14.31,  20.3 ,  14.35,  12.35,  12.42,  12.84,\n",
       "        20.8 ,  18.3 ,   7.14,  20.2 ,  25.8 ,  15.58,  18.2 ,  16.49,\n",
       "        16.02,  13.44,  23.99,  22.7 ,  11.83,   7.29,  13.79,  10.95,\n",
       "        17.77,   8.38,  21.7 ,  14.48,  18.92,   8.88,  23.1 ,  22.45,\n",
       "        26.06,  14.47,  23.43,  10.65,  18.49,  21.67,  14.84,   9.45,\n",
       "        26.77,  19.47,  21.6 ,   5.42,   9.63,  13.92,  16.24,  19.69,\n",
       "         6.54,  15.1 ,  23.63,  23.7 ,   7.51,  15.23,  20.31,  25.89,\n",
       "        19.79,  17.91,  14.59,   6.91,  17.49,   7.66,  17.88,  25.99,\n",
       "        11.71,   5.79,  11.03,  23.26,  19.2 ,  22.95,  16.7 ,  16.77,\n",
       "        27.31,  17.97,  12.53,  24.7 ,  10.37,  12.61,  15.28,  24.83,\n",
       "        15.81,  16.32,  10.36,  10.59,  23.76,  15.7 ,  13.06,   6.97,\n",
       "        15.65,  13.55,  23.28,  21.98,   8.32,  11.11,  15.57,  12.68,\n",
       "        12.92,  15.13,   7.43,  15.77,  22.2 ,  19.74,  12.87,  14.61,\n",
       "        14.22,  12.73,  23.5 ,  19.29,  13.93,  18.79,   7.74,  25.78,\n",
       "        19.91,  15.96,  10.38,  18.61,  15.83,  22.9 ,  15.2 ,  17.58,\n",
       "        21.59,  16.82,   8.6 ,  22.4 ,  17.43,  13.61,  18.67,  10.75,\n",
       "        11.12,   6.76,  13.43,   8.  ,  21.18,   9.96,  11.36,  11.89,\n",
       "        21.15,  18.53,  13.22,   9.83,   8.94,  18.85,  12.18,  16.69,\n",
       "        13.85,  13.8 ,  15.62,  14.11,  16.45,  14.5 ,  22.48,  10.25,\n",
       "        11.86,  13.47,  22.94,  12.98,  14.54,  18.64,  11.34,   9.91,\n",
       "        14.26,  10.71,  10.78,  17.93,  21.74,  19.04,  11.66,  20.62,\n",
       "        21.27,  14.17,  23.83,   8.07,  14.74,  19.82,  22.47,  11.58,\n",
       "        17.74,   9.62,  16.89,  24.24,  14.72,  15.37,  19.48,  10.62,\n",
       "        18.39,  20.9 ,  14.42,  12.41,  10.39,  12.21,  11.72,  14.79,\n",
       "        19.42,  18.62,  14.85,  16.4 ,  16.  ,  14.46])"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# let's do the same exercise for the variable interest rate,\n",
    "# which is charged by lending club to the borrowers\n",
    "\n",
    "data.int_rate.unique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.text.Text at 0x66824f9940>"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEWCAYAAAB8LwAVAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XuYXVWZ5/Hvj3CVggQaLUMSDWrUASKhqQZbbLoiCihI\naKeJcaITnPTEfgYV7DiSOAp229F4CQ4+DGrs0MZGKGMUSKugMVJcbK7hYkgwTSSJUoYEIQmpqJEK\n7/yxV5mTYlfVrqR2nVPn/D7PU8/ZZ521937PqnPqrbX2ZSkiMDMz6+mAagdgZma1yQnCzMxyOUGY\nmVkuJwgzM8vlBGFmZrmcIMzMLJcThJmZ5XKCsGFN0gZJby1Yt13S35UdUy/77jNOSa2SXpDUKWmH\npLWS3j+A7X9K0nWDE61ZxgnCrCBJI0rexW8iogk4EvgI8HVJryt5n2a9coKwuiHpIkl3SfqipK2S\n1kt6e3ptHvBXwNXpv/SrU/nrJS2X9Gz6r31qxfa+Iekrkn4oaScwWdIhafu/krRZ0lclHZbqHyPp\n+5K2pe3dKekASf8GvAL497Tvj/X1PiLzQ+BZ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B18lXgjNRj+DzwWUkPsXePp+f2\nPk02/PTG+pEhAAAAPElEQVRzSavTc7P95ru5mplZLvcgzMwslxOEmZnlcoIwM7NcThBmZpbLCcLM\nzHI5QZiZWS4nCDMzy/X/AWvN1HDQntnaAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x66f94e4390>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# let's make an histogram to get familiar with the\n",
    "# distribution of the variable\n",
    "\n",
    "fig = data.int_rate.hist(bins=30)\n",
    "fig.set_title('Interest Rate')\n",
    "fig.set_xlabel('Interest Rate')\n",
    "fig.set_ylabel('Number of Loans')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Again, we see that the values of the variable vary continuously across the variable range."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.text.Text at 0x6682628940>"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZ4AAAEWCAYAAABWn/G6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xuc3FV9//HXG4gQSUK4rDGESEBi2kC4g1hQN6gQAYHa\nFqH8uJfoT1Ss2JKoVfzZaKriFaREoYAgcRURykVudalWISQIhIApISyFEBJBIAQhJeHz++OcNZN1\ndnd2M9/vzkzez8djHvOd87195jvJfPZ7zplzFBGYmZmVZbOhDsDMzDYtTjxmZlYqJx4zMyuVE4+Z\nmZXKicfMzErlxGNmZqVy4jHbREhql/TkUMdh5sRjgyLpbyXNl7Ra0nJJN0s6ZCOPeZ6kK+sV48aS\ndKqkyzZi/05Jz0naso5hFUZSSNptqOOw1ufEYwMm6RPAN4AvAmOANwEXAkcPZVz1JGmLjdx/AvB2\nIGih62JWD048NiCStgH+H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ggP7ycNTrkX8G7gK93jceWyDwF/DpwEvCUiDgS+B3w0b/NN4OsR\ncUA+z/cGEKfZRnPisU3BCaSBE8nPldVt8yLiyUiDPd5HGjOuW/cgoAt6lPfmY5LuB+4iDZo4cQAx\nPhYR91WeT9JIYFxEXAsQEa9ExB9Id29XRxqkcgVwJ3BA3veeiFgeEWtIQ57cmssXVryHdwMX5KH+\nrwdG5btCs1JsMdQBmBVJ0nakibGmSArSLLUh6R/yJmsqNl/Hhv8n1lQpX8uGf7Btlc/TTvpCf1tE\n/EFSZ/e6GvWMY/gA9u3tOK9VvH6N9e9hM+CgiHhlkOcw2yi+47FW99fA9yNi54iYEBHjSaPnvn2Q\nx+siTdONpH1JI/tCGiL+uZx0/ow0uu9GiYgXgSclHZvPt6Wk15NGSP5AnqCsjTR1+LwBHPpW1le7\nIWnvjY3VbCCceKzVnUCaI6nSNQy+d9s1wHaSFgEfIY2EDvAzYAtJDwOzSdVt9XASqQrvAdKUG28k\nvZ8HSCOi/wfwjxHx9ACO+TFg/zx75kOkNiGz0nh0ajMzK5XveMzMrFROPGZmVionHjMzK5UTj5mZ\nlcqJx8zMSuXEY2ZmpXLiMTOzUv1/7LOf9Zee5rwAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x66825f7438>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# and now,let's explore the income declared by the customers,\n",
    "# that is, how much they earn yearly.\n",
    "\n",
    "fig = data.annual_inc.hist(bins=100)\n",
    "fig.set_xlim(0, 400000)\n",
    "fig.set_title(\"Customer's Annual Income\")\n",
    "fig.set_xlabel('Annual Income')\n",
    "fig.set_ylabel('Number of Customers')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "The majority of salaries are concentrated towards values in the range 30-70 k, with only a few customers earning higher salaries. Again, the values of the variable, vary continuosly across the variable range."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Discrete Variables"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Let's explore the variable \"Number of open credit lines in the borrower's credit file\" (open_acc in the dataset). This is, the total number of credit items (for example, credit cards, car loans, mortgages, etc) that is known for that borrower. By definition it is a discrete variable, because a borrower can have 1 credit card, but not 3.5 credit cards."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([  4.,  11.,   6.,  20.,  12.,   5.,   8.,   9.,  18.,  16.,  10.,\n",
       "        13.,  14.,   7.,  19.,   3.,  15.,  17.,  26.,   2.,  27.,  22.,\n",
       "        21.,  25.,  23.,  29.,  39.,  24.,  30.,  31.,  28.,  37.,  32.,\n",
       "        48.,  33.,  34.,   1.,  35.,  36.,  41.,  45.,  40.,  42.])"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# let's inspect the values of the variable\n",
    "\n",
    "data.open_acc.dropna().unique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.text.Text at 0x668289e9e8>"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYsAAAEWCAYAAACXGLsWAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XuYHVWZ7/HvjyRAIIEQiDGEaLgGA0EcEBQ52BFEBAV0\nFGGQhyASHRGiAyPBo4AXxjiII0e8oShRFGxRBEWUizSIyC0BDAGRAOESINwv4RJO4J0/ajUUTfeu\n6k5X79o7v8/z7Kdrr1pV9a5d3fvtqlW1ShGBmZlZI6s1OwAzM6s/JwszMyvkZGFmZoWcLMzMrJCT\nhZmZFXKyMDOzQk4WVkuSzpD01SZtW5J+IulxSdc2IwazunGysFIkLZb0kKS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xsKHwLmA/8JFe2gnQa\nNJ2mWT03b3lu+qXc+5d49e9sz7FqAhDZf8J/ys+Q1EF2ZDEU+orr4og4oI9lutv4Ir3/XX6WbNyp\nN5N9bs8PQpzdXt4XyZr9jI2I+KSkHYG9gHmStouIRwcxRmsy91lY5SIboKyTrLO422JguzS9N9l/\nzv31YUmrpX6MTYDbgD8B/65syGkkbaFs5N5GrgXeKWkDZY/sPQC4vGCZvwAfSX0k48iORK5N83ZQ\nNiLyasCZAQTfAAABO0lEQVRHyB5leTXwDkmbpbjWlrRFbyvuw7rAA+lI6iCyU0mQnVY6RNJaab1j\nI3va232S9k1la6T5fcV8NzA11RsD7FoinqeB0d1vJG0aEddExHHAw7z6EQLWBpwsbKicTHbevtsP\nyb6gbwLezsD+67+H7MvuQuCT6XTLj8g6sOdLuhn4AQVH0OmU12yysf5vAuZFRNGQzecCf0/1/wx8\nLiIeTPOuIzvvfytwF3BuOsU1AzhL0t/JTkG9piO7ge8CB6fPa0vS5xURfyQbbvp6ZU9DOzrVPwg4\nMm3rKuD1fcUcEfeSJfOb088bSsTzO+AD3R3cwEndFwik7d3Uj7ZZC/Cos2aDKJ3uOjoi3tfsWMwG\nk48szMyskI8szMyskI8szMyskJOFmZkVcrIwM7NCThZmZlbIycLMzAr9L0gROFIuIIL/AAAAAElF\nTkSuQmCC\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x668285f3c8>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# let's make an histogram to get familiar with the\n",
    "# distribution of the variable\n",
    "\n",
    "fig = data.open_acc.hist(bins=100)\n",
    "fig.set_xlim(0, 30)\n",
    "fig.set_title('Number of open accounts')\n",
    "fig.set_xlabel('Number of open accounts')\n",
    "fig.set_ylabel('Number of Customers')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Histograms of discrete variables have this typical broken shape, as not all the values within the variable range are present in the variable. As I said, the customer can have 3 credit cards, but not 3,5 credit cards.\n",
    "\n",
    "Let's look at another example of a discrete variable in this dataset: **Number of installment accounts opened in past 12 months** (open_il_12m in the dataset). Installment accounts are those that at the moment of acquiring them, there is a set period and amount of repayments agreed between the lender and borrower. An example of this is a car loan, or a student loan. The borrower knows that they are going to pay a certain, fixed amount over for example 36 months."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([ nan,   1.,   0.,   2.,   3.,   4.,   6.])"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# let's inspect the variable values\n",
    "\n",
    "data.open_il_12m.unique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.text.Text at 0x6682ac5ac8>"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAY8AAAEWCAYAAACe8xtsAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XmcXFWZ//HPl7AFAgSIZpIQaUAQkYworSKgdkQZFAR+\nLiAikzAI4oLogBqVTcUhijg6oKMsQhgiYVGEEUUx0oALS8Ji2GEwCAETICEk7CHP749zitxUuqvr\nVnd1VSff9+vVr751t/Occ2/d5251ryICMzOzMtZqdQBmZjb0OHmYmVlpTh5mZlaak4eZmZXm5GFm\nZqU5eZiZWWlOHpmk8ySd3KKyJelcSYsk3dTD8IMl/a4FcXVL+kTunizpj4Mdgw0tkjokhaS1exl+\np6SuQQ7LGPjvcNsmD0lzJS2QtGGh3yckdbcwrGbZHXgvsEVEvLV6YERMj4g9+1tI/lK/tr/zGUyS\nuiQ90uo4Bkord1LaQUS8ISK6Wx1HhaSTJF3QxziflTRL0guSzqsatoukqyUtlPS4pEskjWlq0HXo\nK4kPhLZNHtkw4OhWB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mtygXv40mnKh/P/yvlnSqpcu1lJnA76TtUOT13\nSkRcVJh/5X3lGwPr5p2EPUmnX79GSoy35Px6RkSUfsVu/s4eClyST4PdDPy4j8n+F7hU6SaGo2qM\n1wV8UdJLpOuvbXnk4afqmg1BkrpJF19ntTqWsiQtjYgRrY7D+senrczMrDQfeZiZWWk+8jAzs9Kc\nPMzMrDQnDzMzK83Jw8zMSnPyMDOz0v4/5pLxAsZH/2wAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x66fb72ce80>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# let's make an histogram to get familiar with the\n",
    "# distribution of the variable\n",
    "\n",
    "fig = data.open_il_12m.hist(bins=50)\n",
    "fig.set_title('Number of installment accounts opened in past 12 months')\n",
    "fig.set_xlabel('Number of installment accounts opened in past 12 months')\n",
    "fig.set_ylabel('Number of Borrowers')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "The majority of the borrowers have none or 1 installment account, with only a few borrowers having more than 2."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### A variation of discrete variables: the binary variable\n",
    "\n",
    "Binary variables, are discrete variables, that can take only 2 values, therefore binary.\n",
    "\n",
    "In the next cells I will create an additional variable, called defaulted, to capture the number of loans that have defaulted. A defaulted loan is a loan that a customer has failed to re-pay and the money is lost.\n",
    "\n",
    "The variable takes the values 0 where the loans are ok and being re-paid regularly, or 1, when the borrower has confirmed that will not be able to re-pay the borrowed amount."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array(['Current', 'Fully Paid', 'Default', 'Charged Off',\n",
       "       'Late (31-120 days)', 'Issued', 'In Grace Period',\n",
       "       'Does not meet the credit policy. Status:Fully Paid',\n",
       "       'Does not meet the credit policy. Status:Charged Off',\n",
       "       'Late (16-30 days)'], dtype=object)"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# let's inspect the values of the variable loan status\n",
    "\n",
    "data.loan_status.unique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0.0017"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# let's create one additional variable called defaulted.\n",
    "# This variable indicates if the loan has defaulted, which means,\n",
    "# if the borrower failed to re-pay the loan, and the money\n",
    "# is deemed lost.\n",
    "\n",
    "data['defaulted'] = np.where(data.loan_status.isin(['Default']), 1, 0)\n",
    "data.defaulted.mean()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>loan_amnt</th>\n",
       "      <th>int_rate</th>\n",
       "      <th>annual_inc</th>\n",
       "      <th>loan_status</th>\n",
       "      <th>open_acc</th>\n",
       "      <th>open_il_12m</th>\n",
       "      <th>defaulted</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>131079</th>\n",
       "      <td>23675.0</td>\n",
       "      <td>15.80</td>\n",
       "      <td>90000.0</td>\n",
       "      <td>Current</td>\n",
       "      <td>4.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>384935</th>\n",
       "      <td>7500.0</td>\n",
       "      <td>11.67</td>\n",
       "      <td>102000.0</td>\n",
       "      <td>Current</td>\n",
       "      <td>11.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>73585</th>\n",
       "      <td>11150.0</td>\n",
       "      <td>9.25</td>\n",
       "      <td>72000.0</td>\n",
       "      <td>Fully Paid</td>\n",
       "      <td>6.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>660814</th>\n",
       "      <td>8000.0</td>\n",
       "      <td>6.24</td>\n",
       "      <td>101400.0</td>\n",
       "      <td>Current</td>\n",
       "      <td>20.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>349757</th>\n",
       "      <td>34000.0</td>\n",
       "      <td>19.52</td>\n",
       "      <td>99000.0</td>\n",
       "      <td>Current</td>\n",
       "      <td>12.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        loan_amnt  int_rate  annual_inc loan_status  open_acc  open_il_12m  \\\n",
       "131079    23675.0     15.80     90000.0     Current       4.0          NaN   \n",
       "384935     7500.0     11.67    102000.0     Current      11.0          NaN   \n",
       "73585     11150.0      9.25     72000.0  Fully Paid       6.0          NaN   \n",
       "660814     8000.0      6.24    101400.0     Current      20.0          NaN   \n",
       "349757    34000.0     19.52     99000.0     Current      12.0          NaN   \n",
       "\n",
       "        defaulted  \n",
       "131079          0  \n",
       "384935          0  \n",
       "73585           0  \n",
       "660814          0  \n",
       "349757          0  "
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# the new variable takes the value of 0\n",
    "# if the loan is not defaulted\n",
    "\n",
    "data.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>loan_amnt</th>\n",
       "      <th>int_rate</th>\n",
       "      <th>annual_inc</th>\n",
       "      <th>loan_status</th>\n",
       "      <th>open_acc</th>\n",
       "      <th>open_il_12m</th>\n",
       "      <th>defaulted</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>444724</th>\n",
       "      <td>10200.0</td>\n",
       "      <td>25.83</td>\n",
       "      <td>37000.0</td>\n",
       "      <td>Default</td>\n",
       "      <td>8.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>241318</th>\n",
       "      <td>22000.0</td>\n",
       "      <td>20.99</td>\n",
       "      <td>44000.0</td>\n",
       "      <td>Default</td>\n",
       "      <td>12.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>345729</th>\n",
       "      <td>20000.0</td>\n",
       "      <td>11.67</td>\n",
       "      <td>140000.0</td>\n",
       "      <td>Default</td>\n",
       "      <td>9.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>738216</th>\n",
       "      <td>10000.0</td>\n",
       "      <td>13.99</td>\n",
       "      <td>53000.0</td>\n",
       "      <td>Default</td>\n",
       "      <td>4.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>282110</th>\n",
       "      <td>11950.0</td>\n",
       "      <td>17.57</td>\n",
       "      <td>40000.0</td>\n",
       "      <td>Default</td>\n",
       "      <td>14.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "        loan_amnt  int_rate  annual_inc loan_status  open_acc  open_il_12m  \\\n",
       "444724    10200.0     25.83     37000.0     Default       8.0          NaN   \n",
       "241318    22000.0     20.99     44000.0     Default      12.0          NaN   \n",
       "345729    20000.0     11.67    140000.0     Default       9.0          NaN   \n",
       "738216    10000.0     13.99     53000.0     Default       4.0          NaN   \n",
       "282110    11950.0     17.57     40000.0     Default      14.0          NaN   \n",
       "\n",
       "        defaulted  \n",
       "444724          1  \n",
       "241318          1  \n",
       "345729          1  \n",
       "738216          1  \n",
       "282110          1  "
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# the new variable takes the value 1 for loans that\n",
    "# are defaulted\n",
    "\n",
    "data[data.loan_status.isin(['Default'])].head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([0, 1], dtype=int64)"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# A binary variable, can take 2 values. For example,\n",
    "# the variable defaulted that we just created:\n",
    "# either the loan is defaulted (1) or not (0)\n",
    "\n",
    "data.defaulted.unique()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.text.Text at 0x66828eb4a8>"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZ0AAAEWCAYAAAC9qEq5AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHhpJ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yWtB84Cdq6JsanH5RDibPqxWTLOph+bJeOEJh+bwBHA\nu4GVkm5PZR+n+AOjIcenh8ExM7Ns2umejpmZDXNOOmZmlo2TjpmZZeOkY2Zm2TjpmJlZNk46ZkOQ\nRgK+PY3Ie4ekj0ga9P+RpM+nOp/fwXa70vNUSf+wA/UXSXr7jrRtVqW2+Z2OWSZPRMQrAdIQJd8E\nRlP8BmMg84BxEbG9zvanAv+Q2jVrOT7TMdtBUQxRMg/4QJpzZEQ6o7klDTb5XgBJS4HdgVslnSDp\nGEk3SfqVpB9JmpC2+5Sk03v2n+ZYmdqr2bOB16ezrQ8P0KYknZ/mOvkR8OKGfyBmJfhMx6wOEXGv\npBEUX+qzgMcj4jWSXgD8XNIPI+JYSV01Z0h7AodHREh6D/BR4CMlm5wPnB4Rb037mtdXmxSjBb8c\n2J/iF+6rgYsre+NmO8hJx6w6bwZeUXPvZAzF6Mb39dpuH+DKNCfJLn2sr6LNNwCXp8t5D0r6cR1t\nmFXGScesDpL2A7YDmykGRDwtIn4wSLWvAOdGxFJJHcCnUnk3z77kvWuZEPpqMw3pbzbs+J6O2Q6S\ntBfwNeD8NKDkDygGmtw5rX+ZpFF9VB3DM0PAz6kpX0sxvTEq5qGf1kfdrRTTCvfor82fAiekez4T\ngTfu2Ls0q5bPdMyGZrc0Gu/OFGcmlwLnpnVfp+hddpuKIYIfBo7rYx+fAq6S9CjwY55JLt8CTpK0\nimL2xt/0Ufd/ge2S7gAWAV/up81vA2+iuJdzP/DLHX3DZlXyKNNmZpaNL6+ZmVk2TjpmZpaNk46Z\nmWXjpGNmZtk46ZiZWTZOOmZmlo2TjpmZZfP/AfcIJOue8B+tAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x6682ba2748>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# let's make a histogram, although histograms for\n",
    "# binary variables do not make a lot of sense\n",
    "\n",
    "fig = data.defaulted.hist()\n",
    "fig.set_xlim(0, 2)\n",
    "fig.set_title('Defaulted accounts')\n",
    "fig.set_xlabel('Defaulted')\n",
    "fig.set_ylabel('Number of Loans')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "As we can see, the variable shows only 2 values, 0 and 1, and the majority of the loans are ok.\n",
    "\n",
    "**That is all for this demonstration. I hope you enjoyed the notebook, and see you in the next one.**"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.5.6"
  },
  "toc": {
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": "block",
   "toc_window_display": true
  },
  "widgets": {
   "state": {},
   "version": "1.1.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 1
}
